Skip to content

fix(layout): lay out inline objects wider than the line as Hancom Office 2024 does - #468

Open
airmang wants to merge 1 commit into
mainfrom
fix/page-estimate-wide-inline-objects-hancom-2024
Open

airmang wants to merge 1 commit into
mainfrom
fix/page-estimate-wide-inline-objects-hancom-2024

Conversation

@airmang

@airmang airmang commented Oct 15, 2026

Copy link
Copy Markdown
Owner

요약

쪽 수 추정이 줄보다 넓은 글자처럼 취급한 표·그림을 한컴오피스 2024의 한/글처럼 놓도록 고친다.

  • 표 앞의 조판 부호(책갈피·누름틀·머리말·꼬리말·쪽 번호 위치·새 번호·감추기·찾아보기 표시)와 문단 첫머리에 앵커된 위아래 배치 개체는 표의 줄에 선다. 전에는 그 앞에 빈 줄 하나를 따로 두어 뒤 문단이 그만큼 내려갔다.
  • 글자로 번호를 찍는 번호 넣기(autoNum)는 전처럼 표 위에 자기 빈 줄을 둔다. 표 뒤의 조판 부호도 전처럼 표 아래 빈 줄에 선다.
  • 어울림 개체 옆 좁은 띠에 든 이런 개체는 띠보다 넓어도 띠 안 그 자리에 놓인다. 전에는 개체 아래 전체 폭 줄로 내렸다.

시험

  • 해당 고정본 14개를 한컴오피스 2024로 다시 저장했다. 시험의 쪽 수 표도 맞췄다(tall_anchor_first 3쪽, square_band_table_as_character_among_text 1쪽).
  • 표 앞뒤에 모두 조판 부호가 있는 고정본 2개를 더했다(pages_bookmark_around_…, pages_click_here_field_around_…).
  • 고치기 전 코드로는 28개가 실패하고, 고친 뒤에는 모두 통과한다. 다른 배치·FormFit 시험도 모두 통과한다.

🤖 Generated with Claude Code

@airmang airmang left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

306a6f6 검토 완료. 표 전후 조판 부호/autoNum의 구별, 문단 시작 앵커와 어울림 띠 안의 넓은 인라인 개체 배치를 검토했고, 이 변경에서 재현된 코드 결함은 찾지 못했습니다. 별도 Python 3.12 체크아웃의 관련 회귀 테스트 1500개가 모두 통과했고 해당 head의 GitHub 검사 13개도 모두 성공했습니다. 다만 #462/#463 병합 후 최신 main dd67a530bf656a1deb38c1192937a755a49346d0과 병합하면 CHANGELOG.md에서 내용 충돌이 발생합니다(GitHub DIRTY/CONFLICTING 및 git merge-tree로 확인). 예약 작업의 병합 조건에 따라 이번에는 보류합니다. main을 merge해 양쪽 변경 기록을 유지하고 충돌을 해결한 뒤 최신 head의 검사를 다시 통과시키면 재검토할 수 있습니다.

…ice 2024 does

Hancom Office 2024 lays a table set as a character that is wider than its
line differently from what the page estimate followed:

- Controls before it (a bookmark, a field, a header or footer, a page
  number position and so on) and an object placed top and bottom anchored
  before it at the paragraph's start stand on the table's line; no empty
  line of their own above it. An auto number before it, which draws a
  number, still takes its own line. Controls after it still go on an empty
  line under it.
- Beside a square-wrapped object's band, such an object stays in the band,
  alone on its line and reaching past the room, instead of going below the
  wrapped object.

The fixtures for these cases are re-saved by Hancom Office 2024, and two
more hold controls both before and after the table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@airmang
airmang force-pushed the fix/page-estimate-wide-inline-objects-hancom-2024 branch from 306a6f6 to 46103e9 Compare October 16, 2026 06:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant